import 'package:xin_he/generated/json/base/json_field.dart';
import 'package:xin_he/generated/json/xin_he_bank_code_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class XinHeBankCodeEntity {
	String? id;
	String? name;
	String? value;
	dynamic remark;
	@JSONField(name: "version_num")
	dynamic versionNum;
	dynamic removed;
	dynamic createTime;
	dynamic updateTime;
	dynamic fCreateUserId;
	dynamic fUpdateUserId;

	bool selected = false;
	XinHeBankCodeEntity();

	factory XinHeBankCodeEntity.fromJson(Map<String, dynamic> json) => $XinHeBankCodeEntityFromJson(json);

	Map<String, dynamic> toJson() => $XinHeBankCodeEntityToJson(this);

	XinHeBankCodeEntity copyWith({String? id, String? name, String? value, dynamic remark, dynamic versionNum, dynamic removed, dynamic createTime, dynamic updateTime, dynamic fCreateUserId, dynamic fUpdateUserId}) {
		return XinHeBankCodeEntity()
			..id= id ?? this.id
			..name= name ?? this.name
			..value= value ?? this.value
			..remark= remark ?? this.remark
			..versionNum= versionNum ?? this.versionNum
			..removed= removed ?? this.removed
			..createTime= createTime ?? this.createTime
			..updateTime= updateTime ?? this.updateTime
			..fCreateUserId= fCreateUserId ?? this.fCreateUserId
			..fUpdateUserId= fUpdateUserId ?? this.fUpdateUserId;

	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}